class GroupInformationsController < ApplicationController
  def index
    #@group_informations = GroupInformation.all
  end

  def show
    @group_information_item = params[:id]
  end

  def new
    @group_information = GroupInformation.new
  end

  def create
    @group_information = GroupInformation.new(params[:group_information])
    if @group_information.save
      redirect_to @group_information, :notice => "Successfully created group information."
    else
      render :action => 'new'
    end
  end

  def edit
    @group_information = GroupInformation.find(params[:id])
  end

  def update
    @group_information = GroupInformation.find(params[:id])
    if @group_information.update_attributes(params[:group_information])
      redirect_to @group_information, :notice  => "Successfully updated group information."
    else
      render :action => 'edit'
    end
  end

  def destroy
    @group_information = GroupInformation.find(params[:id])
    @group_information.destroy
    redirect_to group_informations_url, :notice => "Successfully destroyed group information."
  end
end
